<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mold')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="moldList" item="vo"}
                <label for="row[mold]-{$key|htmlentities}"><input id="row[mold]-{$key|htmlentities}" name="row[mold]" type="radio"  value="{$key|htmlentities}" {in name="key" value="$row.mold"}checked{/in} disabled/> {$vo|htmlentities}</label>
                {/foreach}
            </div>

        </div>
    </div>

    {if $row['mold'] < '3'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Temp_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-temp_name" data-rule="required" data-source="kzvote/temp/temp" class="form-control selectpage" data-field="title" data-primary-key="name" name="row[temp_name]" type="text" value="{$row.temp_name|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Music_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-music_id" data-source="kzvote/music/music/index" data-params='{"custom[status]":"10"}' class="form-control selectpage" name="row[music_id]" type="text" value="{$row.music_id|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    {if $row['mold'] == '4'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('蓝方名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-blue" data-rule="required" class="form-control" name="row[blue]" type="text" {notempty name="$row.blue"}value="{$row.blue|htmlentities}"{/notempty}>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('红方名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-red" data-rule="required" class="form-control" name="row[red]" type="text" {notempty name="$row.red"}value="{$row.red|htmlentities}"{/notempty}>
        </div>
    </div>
    {/if}

    {if $row['mold'] < '3'}
    <div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-image"></span>
                </div>
                <div style="margin-top: 15px;color: #f00;">建议尺寸：360*160,可设置跳转链接</div>
                <ul class="row list-inline faupload-preview" id="p-image"></ul>
            </div>
        </div>
        {include file="kzvote/link/link" /}
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time_text|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time_text|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Poster')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-poster" data-rule="required" class="form-control" size="50" name="row[poster]" type="text" value="{$row.poster|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-poster" class="btn btn-danger faupload" data-input-id="c-poster" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-poster"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-poster" class="btn btn-primary fachoose" data-input-id="c-poster" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-poster"></span>
            </div>
            <div style="margin-top: 15px;color: #f00;">建议尺寸：375*810</div>
            <ul class="row list-inline faupload-preview" id="p-poster"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Poster Qr Pos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-poster_qr_pos" data-rule="required" class="form-control" name="row[poster_qr_pos]" type="text" value="{$row.poster_qr_pos|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">二维码距离海报顶部及左侧的像素尺寸如“275,200”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Poster Qr Size')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-poster_qr_size" data-rule="required" class="form-control" name="row[poster_qr_size]" type="text" value="{$row.poster_qr_size|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">二维码像素尺寸大小如“135”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Poster')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-person_poster" data-rule="required" class="form-control" size="50" name="row[person_poster]" type="text" value="{$row.person_poster|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-person_poster" class="btn btn-danger faupload" data-input-id="c-person_poster" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-person_poster"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-person_poster" class="btn btn-primary fachoose" data-input-id="c-person_poster" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-person_poster"></span>
            </div>
            <div style="margin-top: 15px;color: #f00;">建议尺寸：375*810</div>
            <ul class="row list-inline faupload-preview" id="p-person_poster"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Qr Pos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_qr_pos" data-rule="required" class="form-control" name="row[person_qr_pos]" type="text" value="{$row.person_qr_pos|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">作品二维码距离海报顶部及左侧的像素尺寸如“275,200”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Qr Size')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_qr_size" data-rule="required" class="form-control" name="row[person_qr_size]" type="text" value="{$row.person_qr_size|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">作品二维码像素尺寸大小如“135”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Opus Pos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_opus_pos" data-rule="required" class="form-control" name="row[person_opus_pos]" type="text" value="{$row.person_opus_pos|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">参赛作品图距离海报顶部及左侧的像素尺寸如“275,200”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Opus Size')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_opus_size" data-rule="required" class="form-control" name="row[person_opus_size]" type="text" value="{$row.person_opus_size|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">参赛作品图像素尺寸大小如“60x80”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Name Pos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_name_pos" data-rule="required" class="form-control" name="row[person_name_pos]" type="text" value="{$row.person_name_pos|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">作品名称距离海报顶部及左侧的像素尺寸如“275,200”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Num Pos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person_num_pos" data-rule="required" class="form-control" name="row[person_num_pos]" type="text" value="{$row.person_num_pos|htmlentities}">
            <div style="margin-top: 15px;color: #f00;">作品编号距离海报顶部及左侧的像素尺寸如“275,200”</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use Diy Rule')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_diy_rule" name="row[use_diy_rule]" type="hidden" value="{$row.use_diy_rule|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-use_diy_rule"
               data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['use_diy_rule']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group" data-favisible="use_diy_rule=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Diy Rule Txt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-diy_rule_txt" class="form-control editor" rows="5" name="row[diy_rule_txt]" cols="50">{$row.diy_rule_txt|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]" cols="50">{$row.desc|htmlentities}</textarea>
        </div>
    </div>

    {if $row['mold'] < '3'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sponsor_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sponsor_name" class="form-control" name="row[sponsor_name]" type="text" value="{$row.sponsor_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sponsor_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sponsor_mobile" class="form-control" name="row[sponsor_mobile]" type="text" value="{$row.sponsor_mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Btn_txt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-btn_txt" class="form-control" name="row[btn_txt]" type="text" value="{$row.btn_txt|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Btn Total Txt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-btn_total_txt" class="form-control" name="row[btn_total_txt]" type="text" value="{$row.btn_total_txt|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-limit_count" data-rule="required" class="form-control" name="row[limit_count]" type="number" value="{$row.limit_count|htmlentities}">
                <div class="input-group-addon">0为不限制</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day_limit_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-day_limit_count" data-rule="required" class="form-control" name="row[day_limit_count]" type="number" value="{$row.day_limit_count|htmlentities}">
                <div class="input-group-addon">0为不限制</div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person Day Limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-person_day_limit" data-rule="required" class="form-control" name="row[person_day_limit]" type="number" value="{$row.person_day_limit|htmlentities}">
                <div class="input-group-addon">0为不限制</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Allow Support Self')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-allow_support_self" name="row[allow_support_self]" type="hidden" value="{$row.allow_support_self|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-allow_support_self"
               data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['allow_support_self']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day_limit_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day_limit_status" name="row[day_limit_status]" type="hidden" value="{$row.day_limit_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-day_limit_status"
               data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['day_limit_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verify_status" name="row[verify_status]" type="hidden" value="{$row.verify_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-verify_status"
               data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['verify_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    {if $row['mold'] < '3'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gift_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-gift_status" name="row[gift_status]" type="hidden" value="{$row.gift_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-gift_status"
               data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['gift_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-group_status" name="row[group_status]" type="hidden" value="{$row.group_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-group_status" data-yes="1"
               data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['group_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-is_open" name="row[is_open]" type="hidden" value="{$row.is_open|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_open" data-yes="1"
               data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['is_open']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('仅自己可分享')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-share_status" name="row[share_status]" type="hidden" value="{$row.share_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-share_status" data-yes="1"
               data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['share_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Review_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-review_status" name="row[review_status]" type="hidden" value="{$row.review_status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-review_status" data-yes="1"
               data-no="0">
                <i class="fa fa-toggle-on text-success {eq name="row['review_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" name="row[status]" type="hidden" value="{$row.status|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status" data-yes="10"
               data-no="20">
                <i class="fa fa-toggle-on text-success {eq name="row['status']" value="20"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <!--投票表单-->
    <div class="panel panel-default">
        <div class="panel-heading">投票表单</div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">投票表单:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-join_form_status" name="row[join_form_status]" type="hidden" value="{$row.join_form_status|htmlentities}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-join_form_status"
                       data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success {eq name="row['join_form_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>

            <div data-favisible="join_form_status=1">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('表单选项')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input data-source="kzvote/option/index" class="form-control selectpage" data-page-size="20" data-multiple="true" name="row[join_form]"
                               data-primary-key="name" type="text" value="{$row.join_form|htmlentities}">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--投票表单-->

    <!--报名设置-->
    {if $row['mold'] < '3'}
    <div class="panel panel-default">
        <div class="panel-heading">报名设置</div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Apply_status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-apply_status" name="row[apply_status]" type="hidden" value="{$row.apply_status|htmlentities}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-apply_status"
                       data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success {eq name="row['apply_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>

            <div data-favisible="apply_status=1">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Apply_check')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-apply_check" name="row[apply_check]" type="hidden" value="{$row.apply_check|htmlentities}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-apply_check"
                           data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success {eq name="row['apply_check']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('end_apply_status')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-end_apply_status" name="row[end_apply_status]" type="hidden" value="{$row.end_apply_status|htmlentities}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher"
                           data-input-id="c-end_apply_status" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success {eq name="row['end_apply_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group" data-favisible="end_apply_status=0">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报名开始时间')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-apply_start_time" class="form-control datetimepicker"
                               data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[apply_start_time]"
                               type="text"
                               value="{$row.apply_start_time_text|htmlentities}">
                    </div>
                </div>
                <div class="form-group" data-favisible="end_apply_status=0">
                    <label class="control-label col-xs-12 col-sm-2">{:__('apply_end_time')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-apply_end_time" class="form-control datetimepicker"
                               data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[apply_end_time]"
                               type="text"
                               value="{$row.apply_end_time_text|htmlentities}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报名选项')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input data-source="kzvote/option/index" class="form-control selectpage" data-page-size="20" data-multiple="true" name="row[option]"
                               data-primary-key="name" type="text" value="{$row.option|htmlentities}">
                    </div>
                </div>
            </div>
        </div>
    </div>
    {/if}
    <!--报名设置-->


    <div class="panel panel-default">
        <div class="panel-heading">流量主设置</div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shield_status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-shield_status" name="row[shield_status]" type="hidden" value="{$row.shield_status|htmlentities}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-shield_status"
                       data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success {eq name="row['shield_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Award_status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-award_status" name="row[award_status]" type="hidden" value="{$row.award_status|htmlentities}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-award_status"
                       data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success {eq name="row['award_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>

            <div data-favisible="award_status=1">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Award_btn_name')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-award_btn_name" class="form-control" name="row[award_btn_name]" type="text"
                               value="{$row.award_btn_name|htmlentities}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Award_num')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-award_num" class="form-control" name="row[award_num]" type="number" value="{$row.award_num|htmlentities}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Award_msg')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-award_msg" class="form-control" name="row[award_msg]" type="text"
                               value="{$row.award_msg|htmlentities}">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">加粉设置</div>
        <div class="panel-body">

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Fans_status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-fans_status" name="row[fans_status]" type="hidden" value="{$row.fans_status|htmlentities}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-fans_status"
                       data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success {eq name="row['fans_status']" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>

            <div data-favisible="fans_status=1">
                <div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Mold')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="row[fans_desc][type]-1"><input id="row[fans_desc][type]-1" name="row[fans_desc][type]" type="radio" value="1" onchange="$('#qr').show();$('#xcx').hide();" {in name="1" value="isset($row.fans_desc.type) ? $row.fans_desc.type  : '1'"}checked{/in}/>公众号</label>
                                <label for="row[fans_desc][type]-2"><input id="row[fans_desc][type]-2" name="row[fans_desc][type]" type="radio" value="2" onchange="$('#qr').show();$('#xcx').hide();" {in name="2" value="isset($row.fans_desc.type) ? $row.fans_desc.type  : ''"}checked{/in}/>微信号</label>
                                <label for="row[fans_desc][type]-3"><input id="row[fans_desc][type]-3" name="row[fans_desc][type]" type="radio" value="3" onchange="$('#qr').show();$('#xcx').hide();" {in name="3" value="isset($row.fans_desc.type) ? $row.fans_desc.type  : ''"}checked{/in}/>微信群</label>
                                <label for="row[fans_desc][type]-4"><input id="row[fans_desc][type]-4" name="row[fans_desc][type]" type="radio" value="4" onchange="$('#qr').hide();$('#xcx').show();" {in name="4" value="isset($row.fans_desc.type) ? $row.fans_desc.type  : ''"}checked{/in}/>小程序</label>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">名称:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="form-control" name="row[fans_desc][name]" type="text" value="{$row.fans_desc ? $row.fans_desc.name : ''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">头像:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-fans_desc_avatar" class="form-control" size="50" name="row[fans_desc][avatar]" type="text" value="{$row.fans_desc ? $row.fans_desc.avatar : ''}">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="faupload-fans_desc_avatar" class="btn btn-danger faupload" data-input-id="c-fans_desc_avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-fans_desc_avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                <span><button type="button" id="fachoose-fans_desc_avatar" class="btn btn-primary fachoose" data-input-id="c-fans_desc_avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                            </div>
                            <span class="msg-box n-right" for="c-fans_desc_avatar"></span>
                        </div>
                        <ul class="row list-inline faupload-preview" id="p-fans_desc_avatar"></ul>
                    </div>
                </div>
                <div class="form-group" id="qr">
                    <label class="control-label col-xs-12 col-sm-2">二维码:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-fans_desc_qr" class="form-control" size="50" name="row[fans_desc][qr]" type="text" value="{$row.fans_desc ? $row.fans_desc.qr : ''}">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="faupload-fans_desc_qr" class="btn btn-danger faupload" data-input-id="c-fans_desc_qr" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-fans_desc_qr"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                <span><button type="button" id="fachoose-fans_desc_qr" class="btn btn-primary fachoose" data-input-id="c-fans_desc_qr" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                            </div>
                            <span class="msg-box n-right" for="c-fans_desc_qr"></span>
                        </div>
                        <ul class="row list-inline faupload-preview" id="p-fans_desc_qr"></ul>
                    </div>
                </div>
                <div id="xcx" style="display:none;">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">小程序appid:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input class="form-control" name="row[fans_desc][appid]" type="text" value="{$row.fans_desc && $row.fans_desc.appid ? $row.fans_desc.appid : ''}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">小程序路径:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input class="form-control" name="row[fans_desc][path]" type="text" value="{$row.fans_desc && $row.fans_desc.path ? $row.fans_desc.path : ''}">
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
